package com.aistar.service;

import com.aistar.exception.SecKillException;
import com.aistar.pojo.Seckill;
import com.aistar.util.ServerResponse;

import java.util.Date;
import java.util.List;

public interface SeckillService extends BaseService<Seckill> {
    public ServerResponse getproByTime(Date nowTime,Integer pageNum);

    //获得秒杀库存
    public ServerResponse getCountBySeckill(Integer id);

    //处理秒杀活动
    public ServerResponse processSeckill(Integer seckillId,Integer userId,Integer num ) throws SecKillException;
}
